package com.example.demo_appa

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)

    }
    //跳转到appB的详情页面
    fun toB(view: View) {
        val  intent = Intent("android.intent.action.DETAIL") //设置action
        intent.setData(Uri.parse("bawei://www.bawei.com:8080/goodsDetail?goodsId=1"))
        startActivity(intent)
    }
}